import org.apache.spark.{SparkConf, SparkContext}

object TextFileRW {
  def main(args: Array[String]): Unit = {
    val conf = new SparkConf().setAppName("BroadCastTest").setMaster("local")
    conf.set("spark.testing.memory", "2147480000")
    val sc = new SparkContext(conf)
    val lines = sc.textFile("src/wordcount.txt", 3)
    lines.saveAsTextFile("src/wordsave")

  }

}
